﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RptTask.aspx.cs" Inherits="WebMMS.Report.RptTask" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="../script/jquery.js"></script>
    <script type="text/javascript" src="../script/jquery.setBrowserClass.js"></script>
    <script type="text/javascript" src="../script/jquery.marquee.js"></script>
    <script type="text/javascript" src="../script/main.js"></script>
    <script type="text/javascript" src="../script/Common.js"></script>
    <script language="javascript" type="text/javascript" src="../script/UCcalendar/WdatePicker.js"></script>
    <style type="text/css">
        .lbCursor
        {
            cursor: pointer;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="Form1" runat="server">
    <div align="center">
        <table>
            <tr>
                <td style="text-align: right;">
                    PID：
                </td>
                <td style="text-align: left;">
                    <asp:DropDownList ID="ddlPID" runat="server" CssClass="dropnormal">
                    </asp:DropDownList>
                </td>
                <td style="text-align: right;">
                    AppID：
                </td>
                <td style="text-align: left;">
                    <asp:DropDownList ID="ddlAppID" runat="server" CssClass="dropnormal">
                    </asp:DropDownList>
                </td>
                <td style="text-align: right;">
                    任务类型：
                </td>
                <td style="text-align: left;">
                    <asp:DropDownList ID="ddlTaskType" runat="server" CssClass="dropnormal">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    时间From：
                </td>
                <td style="text-align: left;">
                    <input class="Wdate" id="inputDateFrom" name="inputDateStart" runat="server" type="text"
                        onclick="WdatePicker()" />
                </td>
                <td style="text-align: right;">
                    To：
                </td>
                <td style="text-align: left;">
                    <input class="Wdate" id="inputDateTo" name="inputDateStart" runat="server" type="text"
                        onclick="WdatePicker()" />
                </td>
                <td align="center" colspan="2">
                    &nbsp;
                    <asp:Button ID="btnQuery" runat="server" Text="查 询" CssClass="button_green" Width="70px"
                        OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <br />
        <div>
            <div style="width: 50%; float: left; text-align: left; margin-left: 0px;">
                <asp:Label ID="lbCount" runat="server"></asp:Label>
            </div>
            <div style="width: 50%; text-align: right; float: right; margin-right: 20px;">
                <asp:Label ID="lbRnumAll" runat="server"></asp:Label>
            </div>
        </div>
        <asp:GridView ID="GVinfo" runat="server" AutoGenerateColumns="False" CssClass="reason_box"
            Font-Size="12px" CellPadding="0" BorderWidth="0px" BorderColor="#A6E1FF" Width="100%"
            AllowPaging="True" PageSize="30">
            <Columns>
                <asp:TemplateField HeaderText="用户">
                    <ItemTemplate>
                        <asp:Label ID="lbUser" runat="server" Text='<%# Bind("UserID") %>' CssClass="lbCursor"
                            ToolTip='<%# Bind("UserInfo") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="PID">
                    <ItemTemplate>
                        <asp:Label ID="lbPID" runat="server" Text='<%# Bind("PID") %>' CssClass="lbCursor"
                            ToolTip='<%# Bind("PValue") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="AppID">
                    <ItemTemplate>
                        <asp:Label ID="lbAppID" runat="server" Text='<%# Bind("AppID") %>' CssClass="lbCursor"
                            ToolTip='<%# Bind("APPValue") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="任务类型">
                    <ItemTemplate>
                        <asp:Label ID="lbTypeName" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="请求时间">
                    <ItemTemplate>
                        <asp:Label ID="lbCreateTime" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <span style="color: Red; font-weight: bold;">没有数据！</span>
            </EmptyDataTemplate>
        </asp:GridView>
        <div style="padding-top: 10px; text-align: right;">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                PageSize="30" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页"
                ShowBoxThreshold="999">
            </webdiyer:AspNetPager>
        </div>
    </div>
    </form>
</asp:Content>
